<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>直推用户</title>
    <!-- 引入 WeUI CDN 链接 -->
    <link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/2.3.0/weui.min.css"/>
    <link rel="stylesheet" href="./css/base.css"/>
    <style>
    </style>
</head>
<body>
<div class="page">
    <div style="height: 50px;line-height: 50px;background-color: #f7f7f7;">
        <a href="/user" ><img src="./img/back.png"  style=" vertical-align:middle;width: 20px">
            <span style="color: #000;vertical-align:middle;font-weight: bold">返回</span>
        </a>
    </div>
    <div>
        <table style="border-spacing:0;width: 100%;">
            <thead>
                <tr style="background-color: #ddd;font-size: 15px;line-height: 40px;height: 40px;">
                    <th style="width: 40%">时间</th>
                    <th style="width: 15%">类型</th>
                    <th style="width: 20%">金额</th>
                    <th style="width: 25%">状态</th>
                </tr>
            </thead>
            <tbody style="text-align: center;font-size: 14px;line-height: 35px;height: 35px;">
                @foreach($logList as $log)
                    <tr >
                        <td>{{$log['create_time']}}</td>
                        <td>{{$log['type_text']}}</td>
                        <td style="{{$log['amount'] > 0 ? 'color:red': 'color:green'}}">{{$log['amount']}}</td>
                        <td>{{$log['status']}}</td>
                    </tr>
                @endforeach
            </tbody>
        </table>
    </div>

</div>
<script src="https://cdn.bootcdn.net/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
<script type="text/javascript">

</script>
</body>
</html>